﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace ServiceTester
{
    using ServiceTester.ServerRentIt11;

    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmUserClient()); 
        }

        public static int GetRatingScore(Rating rating) {
            switch (rating) {
                case Rating.Zero:
                    return 0;
                case Rating.One:
                    return 1;
                case Rating.Two:
                    return 2;
                case Rating.Three:
                    return 3;
                case Rating.Four:
                    return 4;
                case Rating.Five:
                    return 5;
                default:
                    return -1;
            }
        }
    }
}
